﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Micua.iChat.Common;
using Micua.iChat.Models;

namespace Micua.iChat.Utilities
{
    public class SFZXValueConverter : ValueConverter
    {
        public override object Convert(object value, Type targetType, object parameter, string language)
        {
            var status = (UserStatus)value;
            switch (status)
            {
                case UserStatus.Offline:
                    return 0.5;
                case UserStatus.Online:
                    return 1;
            }
            return 1;
        }
    }
}
